//
//  DeleteAccountVC.swift
//  ezyform
//
//  Created by Moennig Q on 7/2/2022.
//  Copyright © 2022 Client.Solution Pty Ltd. All rights reserved.
//

import UIKit

class DeleteAccountVC: ModelBaseViewController {
    let customView = DeleteAccountView()
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view = self.customView
        self.customView.setTitle(R.string.localizable.deleteAccount())
        
        self.customView.closeBtn.addTarget(self, action: #selector(dismissVC), for: UIControl.Event.touchUpInside)
        
        self.customView.delAccountClosure = {[weak self] in
            guard let strongSelf = self else { return  }
            let vc = ConfirmDelAccountVC()
            vc.hidesBottomBarWhenPushed = true
            strongSelf.navigationController?.pushViewController(vc, animated: false)
        }
    }
}
